import datetime
import logging

# server_logger = logging.getLogger("server")
import time

from apscheduler.schedulers.blocking import BlockingScheduler


def tick():
    print('你好')


#
#
from apscheduler.schedulers.background import BackgroundScheduler

if __name__ == '__main__':
    scheduler = BackgroundScheduler()

    scheduler.add_job(tick, 'interval', seconds=3)

    scheduler.start()
